home *** CD-ROM | disk | FTP | other *** search
/ Icon Pak 1 / Icon Pak I (2 of 2).img / INSTALL.BAT < prev   
DOS Batch File  |  1990-06-14  |  5KB  |  183 lines

  1. echo off
  2. if not exist getdrv.exe goto MUSTBE
  3. getdrv
  4. if errorlevel 2 goto MUSTBE
  5. cls
  6. echo This batch file installs Icon Pak I on drive C: in the \IP
  7. echo   directory.  If another drive and directory are indicated on
  8. echo   the command line, they are used in place of these defaults.
  9. echo                                                                       .
  10. echo The first parameter is the drive letter (no colon) followed by
  11. echo  the directory path.  It is possible to enter just 
  12. echo  a drive letter without a directory path, but to enter a directory
  13. echo  path there must first be a drive letter.
  14. echo                                                                       .
  15. echo For example, "INSTALL D \ICONPAK" will install the ICON PAK I in the
  16. echo  \ICONPAK directory on drive D.  Notice that the drive letter is NOT
  17. echo  followed by a colon, and that there is a space between the drive letter
  18. echo  and the directory.  If the directory does not exist, it will be created.
  19. echo                                                                       .
  20. pause
  21. if errorlevel 1 goto DRIVE_B
  22. :DRIVE_A
  23. :DISK1A
  24. if exist ICONS1.EXE goto STARTA
  25. echo The installation program must be run from Disk #1.  Insert Disk #1
  26. echo and press Enter.
  27. pause
  28. goto DISK1A
  29. :STARTA
  30. if '%1'=='' goto NOPARMSA
  31. rem
  32. rem A drive letter was entered, test for a directory path
  33. rem
  34. if '%2'=='' goto NODIRA
  35. rem
  36. rem Both a drive letter and a directory were entered on the command line
  37. rem
  38. echo The path you have selected is %1:%2.
  39. echo If this is incorrect, press CTRL-C and reenter your selections.
  40. pause
  41. %1:
  42. md %2 >nul
  43. cd %2
  44. copy a:ICONS?.EXE %1:%2
  45. if exist ICONS5.EXE goto QUIT
  46. :Loop1A
  47. echo Please insert Disk #2
  48. pause
  49. if not Exist a:icons5.exe goto loop1A
  50. copy a:ICONS?.EXE %1:%2
  51. goto QUIT
  52. :NOPARMSA
  53. rem
  54. rem Neither a drive letter nor a dircetory path were entered, use defaults
  55. rem
  56. echo The path you have selected is C:\IP.
  57. echo If this is incorrect, press CTRL-C and reenter your selections.
  58. pause
  59. c:
  60. md \ip>nul
  61. cd \ip
  62. copy a:ICONS?.EXE c:\ip
  63. if exist ICONS5.EXE goto QUIT
  64. :Loop2A
  65. echo Please insert Disk #2
  66. pause
  67. if not Exist a:icons5.exe goto loop2A
  68. copy a:ICONS?.EXE c:\ip
  69. goto QUIT
  70. :NODIRA
  71. rem
  72. rem A drive was entered, but no directory
  73. rem
  74. echo The path you have selected is %1:\IP.
  75. echo If this is incorrect, press CTRL-C and reenter your selections.
  76. pause
  77. %1:
  78. md \ip>nul
  79. cd \ip
  80. copy a:ICONS?.EXE %1:\ip
  81. if exist ICONS5.EXE goto QUIT
  82. :Loop3A
  83. echo Please insert Disk #2
  84. pause
  85. if not Exist a:icons5.exe goto loop3A
  86. copy a:ICONS?.EXE %1:\ip
  87. goto QUIT
  88. rem
  89. rem Do the installation from Drive B
  90. rem
  91. :DRIVE_B
  92. :DISK1B
  93. if exist ICONS1.EXE goto STARTB
  94. echo The installation program must be run from Disk #1.  Insert Disk #1
  95. echo and press Enter.
  96. pause
  97. goto DISK1B
  98. :STARTB
  99. if '%1'=='' goto NOPARMSB
  100. rem
  101. rem A drive letter was entered, test for a directory path
  102. rem
  103. if '%2'=='' goto NODIRB
  104. rem
  105. rem Both a drive letter and a directory were entered on the command line
  106. rem
  107. echo The path you have selected is %1:%2.
  108. echo If this is incorrect, press CTRL-C and reenter your selections.
  109. pause
  110. %1:
  111. md %2 >nul
  112. cd %2
  113. copy b:ICONS?.EXE %1:%2
  114. if exist ICONS5.EXE goto QUIT
  115. :Loop1B
  116. echo Please insert Disk #2
  117. pause
  118. if not Exist b:icons5.exe goto loop1B
  119. copy b:ICONS?.EXE %1:%2
  120. goto QUIT
  121. :NOPARMSB
  122. rem
  123. rem Neither a drive letter nor a dircetory path were entered, use defaults
  124. rem
  125. echo The path you have selected is C:\IP.
  126. echo If this is incorrect, press CTRL-C and reenter your selections.
  127. pause
  128. c:
  129. md \ip>nul
  130. cd \ip
  131. copy b:ICONS?.EXE c:\ip
  132. if exist ICONS5.EXE goto QUIT
  133. :Loop2B
  134. echo Please insert Disk #2
  135. pause
  136. if not Exist b:icons5.exe goto loop2B
  137. copy b:ICONS?.EXE c:\ip
  138. goto QUIT
  139. :NODIRB
  140. rem
  141. rem A drive was entered, but no directory
  142. rem
  143. echo The path you have selected is %1:\IP.
  144. echo If this is incorrect, press CTRL-C and reenter your selections.
  145. pause
  146. %1:
  147. md \ip>nul
  148. cd \ip
  149. copy b:ICONS?.EXE %1:\ip
  150. if exist ICONS5.EXE goto QUIT
  151. :Loop3B
  152. echo Please insert Disk #2
  153. pause
  154. if not Exist b:icons5.exe goto loop3B
  155. copy b:ICONS?.EXE %1:\ip
  156. rem
  157. rem  Both drive routine end here
  158. rem
  159. :QUIT
  160. rem
  161. rem Install complete!
  162. rem
  163. echo                                                                       .
  164. echo Icon Pak I installation complete!
  165. echo                                                                       .
  166. goto the_end
  167. rem
  168. rem  The installation must be run from a floppy drive
  169. rem
  170. :MUSTBE
  171. cls
  172. echo                                                                       .
  173. echo                                                                       .
  174. echo The Icon Pak I installation program must be run from either
  175. echo drive A or drive B while that drive is the current drive.
  176. echo Type A: then ENTER to make A the current drive, or B: ENTER
  177. echo for drive B, then restart the installation program.
  178. echo                                                                       .
  179. echo If you continue to get this message after making A or B the
  180. echo current drive, check to be sure that the diskette is Disk #1.
  181. echo                                                                       .
  182. echo                                                                       .
  183. :the_end